home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Games / Doom / ADoom-0.8 / ADoom_src / r_plane.h < prev    next >
C/C++ Source or Header  |  1998-06-24  |  2KB  |  89 lines

  1. // Emacs style mode select   -*- C++ -*- 
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // DESCRIPTION:
  18. //    Refresh, visplane stuff (floor, ceilings).
  19. //
  20. //-----------------------------------------------------------------------------
  21.  
  22.  
  23. #ifndef __R_PLANE__
  24. #define __R_PLANE__
  25.  
  26.  
  27. #include "doomdef.h"
  28. #include "r_data.h"
  29.  
  30. #ifdef __GNUG__
  31. #pragma interface
  32. #endif
  33.  
  34.  
  35. // Visplane related.
  36. extern  short*        lastopening;
  37.  
  38.  
  39. typedef void (*planefunction_t) (int top, int bottom);
  40.  
  41. extern planefunction_t    floorfunc;
  42. extern planefunction_t    ceilingfunc_t;
  43.  
  44. extern short        floorclip[SCREENWIDTH];
  45. extern short        ceilingclip[SCREENWIDTH];
  46.  
  47. extern FAR fixed_t    yslope[SCREENHEIGHT];
  48. extern FAR fixed_t    distscale[SCREENWIDTH];
  49.  
  50. void R_InitPlanes (void);
  51. void R_ClearPlanes (void);
  52.  
  53. void
  54. R_MapPlane
  55. ( int        y,
  56.   int        x1,
  57.   int        x2 );
  58.  
  59. void
  60. R_MakeSpans
  61. ( int        x,
  62.   int        t1,
  63.   int        b1,
  64.   int        t2,
  65.   int        b2 );
  66.  
  67. void R_DrawPlanes (void);
  68.  
  69. visplane_t*
  70. R_FindPlane
  71. ( fixed_t    height,
  72.   int        picnum,
  73.   int        lightlevel );
  74.  
  75. visplane_t*
  76. R_CheckPlane
  77. ( visplane_t*    pl,
  78.   int        start,
  79.   int        stop );
  80.  
  81.  
  82.  
  83. #endif
  84. //-----------------------------------------------------------------------------
  85. //
  86. // $Log:$
  87. //
  88. //-----------------------------------------------------------------------------
  89.